package com.xyf.sys.mapper;

import com.xyf.sys.domain.RoleDept;
import com.xyf.sys.domain.RoleDeptKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface RoleDeptMapper {
    int deleteByPrimaryKey(RoleDeptKey key);

    int insert(RoleDeptKey record);

    int insertSelective(RoleDeptKey record);

    void deleteRoleDeptByRoleId(@Param("roleId") Long roleId);

    int batchRoleDept(List<RoleDept> list);
}